<{*
<div>
<a href="<{$xoops_url}>/userinfo.php?uid=<{$actionForm->get('uid')|xoops_escape}>"><{$smarty.const._MD_USER_LANG_PROFILE}></a>
&nbsp;<span style="font-weight:bold;">&raquo;&raquo;</span>&nbsp;<{$smarty.const._MD_USER_LANG_EDITPROFILE}>
</div>
*}>

<h1><{$smarty.const._MD_USER_LANG_EDITPROFILE}></h1>

<{if $actionForm->hasError()}>
<ul class="errorMsg">
  <{foreach item=message from=$actionForm->getErrorMessages()}>
    <li><{$message}></li>
  <{/foreach}>
</ul>
<{/if}>

<form action="#" method="post">
<{xoops_token form=$actionForm}>
<{xoops_input name=uid type=hidden value=$actionForm->get('uid')}>
<table class="outer" cellspacing="1" width="100%">
  <tr>
    <td class="head"><{$smarty.const._MD_USER_LANG_NICKNAME}></td>
    <td class="<{cycle values="odd,even"}>"><{$thisUser->getShow('uname')}></td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_name"><{$smarty.const._MD_USER_LANG_NAME}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=name size=30 maxlength=60 value=$actionForm->get('name')}>
    </td>
  </tr>
  <tr>
    <td class="head">
      <{if $allow_chgmail}>
        <label for="legacy_xoopsform_email"><{$smarty.const._MD_USER_LANG_EMAIL}></label>
      <{else}>
        <{$smarty.const._MD_USER_LANG_EMAIL}>
      <{/if}>
    </td>
    <td class="<{cycle values="odd,even"}>">
      <{if $allow_chgmail}>
        <{xoops_input name=email size=30 maxlength=60 value=$actionForm->get('email')}><br />
      <{else}>
        <{$thisUser->getShow('email')}><br />
      <{/if}>
      <label><{xoops_input type=checkbox name=user_viewemail value=1 default=$actionForm->get('user_viewemail')}><{$smarty.const._MD_USER_LANG_USER_VIEWEMAIL}></label>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_url"><{$smarty.const._MD_USER_LANG_WEBSITE}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=url size=30 maxlength=100 value=$actionForm->get('url')}>
    </td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._MD_USER_LANG_AVATAR}></td>
    <td class="<{cycle values='odd,even'}>">
      <a href="<{$xoops_url}>/edituser.php?op=avatarform&amp;uid=<{$thisUser->getShow('uid')}>"><{$smarty.const._MD_USER_LANG_AVATAR_EDIT}></a>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_timezone_offset"><{$smarty.const._MD_USER_LANG_TIMEZONE_OFFSET}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <select name="timezone_offset" id="legacy_xoopsform_timezone_offset">
        <{xoops_optionsArray id=timezone_offset label=zone_name value=offset from=$timezones default=$actionForm->get('timezone_offset')}>
      </select>
    </td>
  </tr>

  <{* instant messager *}>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_icq"><{$smarty.const._MD_USER_LANG_USER_ICQ}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=user_icq size=15 maxlength=15 value=$actionForm->get('user_icq')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_aim"><{$smarty.const._MD_USER_LANG_USER_AIM}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=user_aim size=18 maxlength=18 value=$actionForm->get('user_aim')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_yim"><{$smarty.const._MD_USER_LANG_USER_YIM}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=user_yim size=25 maxlength=25 value=$actionForm->get('user_yim')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_msnm"><{$smarty.const._MD_USER_LANG_USER_MSNM}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=user_msnm size=30 maxlength=100 value=$actionForm->get('user_msnm')}>
    </td>
  </tr>
  <{* end of instant messager *}>

  <tr>
    <td class="head"><label for="legacy_xoopsform_user_from"><{$smarty.const._MD_USER_LANG_USER_FROM}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=user_from size=30 maxlength=100 value=$actionForm->get('user_from')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_occ"><{$smarty.const._MD_USER_LANG_USER_OCC}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=user_occ size=30 maxlength=100 value=$actionForm->get('user_occ')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_intrest"><{$smarty.const._MD_USER_LANG_USER_INTREST}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_input name=user_intrest size=30 maxlength=150 value=$actionForm->get('user_intrest')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_sig"><{$smarty.const._MD_USER_LANG_USER_SIG}></label></td>
    <td class="<{cycle values="odd,even"}>">
          <input type="checkbox" id="user_sig_bbcode_onoff" onclick="if(this.checked){xoopsGetElementById('user_sig_bbcode_buttons_pre').style.display='block';xoopsGetElementById('user_sig_bbcode_buttons_post').style.display='block'}else{xoopsGetElementById('user_sig_bbcode_buttons_pre').style.display='none';xoopsGetElementById('user_sig_bbcode_buttons_post').style.display='none'};" /><label for="user_sig_bbcode_onoff"><{$smarty.const._HD_INPUTHELPER}></label><br />
          <{xoopsdhtmltarea name="user_sig" id="user_sig" cols="37" rows="8" value=$actionForm->get('user_sig') pre_style="display:none;" post_style="display:none;"}><br />
<{*      <{xoops_dhtmltarea name=user_sig value=$actionForm->get('user_sig')}><br /> *}>
      <label><{xoops_input type=checkbox name=attachsig value=1 default=$actionForm->get('attachsig')}><{$smarty.const._MD_USER_LANG_ATTACHSIG}></label>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_umode"><{$smarty.const._MD_USER_LANG_UMODE}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{html_options id=legacy_xoopsform_user_umode name=umode options=$umodeOptions selected=$actionForm->get('umode')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_uorder"><{$smarty.const._MD_USER_LANG_UORDER}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{html_options id=legacy_xoopsform_user_uorder name=uorder options=$uorderOptions selected=$actionForm->get('uorder')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_notify_method"><{$smarty.const._MD_USER_LANG_NOTIFY_METHOD}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{html_options id=legacy_xoopsform_user_notify_method name=notify_method options=$notify_methodOptions selected=$actionForm->get('notify_method')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_user_notify_mode"><{$smarty.const._MD_USER_LANG_NOTIFY_MODE}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{html_options id=legacy_xoopsform_user_notify_mode name=notify_mode options=$notify_modeOptions selected=$actionForm->get('notify_mode')}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_bio"><{$smarty.const._MD_USER_LANG_BIO}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <{xoops_textarea name=bio value=$actionForm->get('bio') rows=5 cols=50}>
    </td>
  </tr>
  <tr>
    <td class="head"><label for="legacy_xoopsform_pass"><{$smarty.const._MD_USER_LANG_PASSWORD}></label></td>
    <td class="<{cycle values="odd,even"}>">
      <em><{$smarty.const._MD_USER_LANG_TYPEPASSTWICE}></em><br />
      <{xoops_input type=password name=pass size=10 maxlength=32 value=$actionForm->get('pass')}>
      <{xoops_input type=password name=vpass size=10 maxlength=32 value=$actionForm->get('vpass')}>
    </td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._MD_USER_LANG_USERCOOKIE}></td>
    <td class="<{cycle values="odd,even"}>">
      <label><{xoops_input type=radio name=usercookie value=1 default=$actionForm->get('usercookie')}><{$smarty.const._YES}></label>
      <label><{xoops_input type=radio name=usercookie value=0 default=$actionForm->get('usercookie')}><{$smarty.const._NO}></label>
    </td>
  </tr>
  <tr>
    <td class="head"><{$smarty.const._MD_USER_LANG_USER_MAILOK}></td>
    <td class="<{cycle values="odd,even"}>">
      <label><{xoops_input type=radio name=user_mailok value=1 default=$actionForm->get('user_mailok')}><{$smarty.const._YES}></label>
      <label><{xoops_input type=radio name=user_mailok value=0 default=$actionForm->get('user_mailok')}><{$smarty.const._NO}></label>
    </td>
  </tr>
  <tr>
    <td class="head">&nbsp;</td>
    <td class="<{cycle values="odd,even"}>">
      <input type="submit" value="<{$smarty.const._MD_USER_LANG_SAVECHANGES}>" />
    </td>
  </tr>
</table>
</form>
